package day17.animal;

public class dog extends animal {

    public String height;

    public dog() {}

    public dog(String name, int age, String color, String height) {
        super(name, age, color);
        this.height = height;
    }

    @Override
    public void eat() {
        System.out.println("大狗吃东西");
    }

    @Override
    public void sleep() {
        System.out.println("大狗睡大觉");
    }

    @Override
    public void run() {
        System.out.println("大狗追猎物");
    }

}
